<div *ngIf="driver" class="form-horizontal">
    <div class="form-group row">
        <label for="id" class="col-sm-2 form-control-label">ID:</label>
        <div class="col-sm-10">
            <input id="id" [(ngModel)]="driver.driver_id" placeholder="司机ID" class="form-control" required readonly />
        </div>
    </div>
    <div class="form-group row">
        <label for="name" class="col-sm-2 form-control-label">司机姓名:</label>
        <div class="col-sm-10">
            <input id="name" [(ngModel)]="driver.driver_name" placeholder="司机姓名" class="col-sm-10 form-control" required /></div>
    </div>
    <div class="form-group row">
        <label for="mobile" class="col-sm-2 form-control-label">电话:</label>
        <div class="col-sm-10">
            <input id="mobile" [(ngModel)]="driver.driver_mobile" placeholder="电话" class="col-sm-10 form-control" required /></div>
    </div>
    <div class="form-group row">
        <label for="carrier" class="col-sm-2 form-control-label">所属公司:</label>
        <div class="col-sm-10">
            <input id="carrier" [(ngModel)]="driver.carrier_id" placeholder="所属公司" class="col-sm-10 form-control" required /></div>
    </div>
    <div class="form-group row">
        <label for="status" class="col-sm-2 form-control-label">是否有效:</label>
        <div class="col-sm-10">
            <select class="col-sm-10 form-control" id="status" [(ngModel)]="driver.status">
            <option>YES</option>
            <option>NO</option>
        </select>
        </div>
    </div>
    <div class="form-group row">
        <label for="login_name" class="col-sm-2 form-control-label">登录名:</label>
        <div class="col-sm-10">
            <input id="login_name" [(ngModel)]="driver.login_username" placeholder="登录名" class="col-sm-10 form-control" required />
        </div>
    </div>
    <div class="form-group row">
        <div class="offset-sm-2 col-sm-2">
            <button class="btn btn-primary" (click)="goBack()">回退</button>
        </div>
        <div class="col-sm-2">
            <button class="btn btn-warning" (click)="save()">保存</button>
        </div>
    </div>
</div>